package com.tipcp.quip.logging;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LogConfig {
    @Bean
    public FilterRegistrationBean<MdcFilter> mdcFilter() {
        FilterRegistrationBean<MdcFilter> bean = new FilterRegistrationBean<>();
        bean.setFilter(new MdcFilter());
        bean.setOrder(1);
        return bean;
    }
}
